// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.costAccounting.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.costAccounting.entity.CostConfigProduct;
import com.fowo.api.costAccounting.model.cost.CostConfigProductItemVo;
import com.fowo.api.costAccounting.model.cost.CostConfigProductSearchParamPo;
import com.fowo.api.costAccounting.model.cost.CostConfigProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface CostConfigProductMapper extends BaseMapper<CostConfigProduct> {
  Page<CostConfigProductItemVo> pageSearch(
          @Param("page") Page page,
          @Param("search") CostConfigProductSearchParamPo search
  );
  List<CostConfigProductItemVo> search(
          @Param("search") CostConfigProductSearchParamPo search
  );
  Date searchLastUpdateTime(
          @Param("search") CostConfigProductSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") CostConfigProductSearchParamPo search);
  Long getIdByUpdateSql(@Param("updateSql") String updateSql);

  List<Long> getIdsByUpdateSql(@Param("list") List<String> list);

  String getUpdateSqlById(@Param("id") Long id);

  List<String> getUpdateSqlByIds(@Param("ids") List<Long> ids);
  CostConfigProductVo selectVoById(@Param("id") Long id);

    List<CostConfigProductVo> getByCostConfigId(@Param("costConfigId") Long costConfigId);
}
